package com.niiwoo.civet.trade.service.dubbo.notify;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.trade.dto.request.GetOpenInvestmentAccountAfterUnInvestment;
import com.niiwoo.civet.trade.service.local.notify.PersonalizedNotifyTradeLoaclService;
import com.niiwoo.civet.trade.service.notify.PersonalizedNotifyTradeDubboService;

@Service(version = "1.0.0")
public class PersonalizedNotifyTradeDubboServiceImpl implements PersonalizedNotifyTradeDubboService {
	
	@Autowired
	private PersonalizedNotifyTradeLoaclService personalizedNotifyTradeLoaclService;
	
	@Override
	public List<String> getOpenInvestmentAccountAfterUnInvestment(GetOpenInvestmentAccountAfterUnInvestment requestDTO) {
		Assert.notEmpty(requestDTO.getUserIdList(), "用户ID列表不能为空");
		return personalizedNotifyTradeLoaclService.getOpenInvestmentAccountAfterUnInvestment(requestDTO.getUserIdList());
	}
}